package com.sgs.studentssm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sgs.common.annotation.Excel;
import com.sgs.common.core.domain.BaseEntity;

/**
 * 学生系统个人课程信息对象 stu_course
 *
 * @author 李非凡
 * @date 2022-10-01
 */
public class StuCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程ID */
    private Long id;

    /** 课程编号 */
    @Excel(name = "课程编号")
    private Long number;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String name;

    /** 课程性质 */
    @Excel(name = "课程性质")
    private String quality;

    /** 课程成绩 */
    @Excel(name = "课程成绩")
    private Integer grades;

    /** 任课教师 */
    @Excel(name = "任课教师")
    private String tename;

    /** 选修时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "选修时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date electiveTime;

    /** 学生学号 */
    @Excel(name = "学生学号")
    private String stuName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setQuality(String quality)
    {
        this.quality = quality;
    }

    public String getQuality()
    {
        return quality;
    }
    public void setGrades(Integer grades)
    {
        this.grades = grades;
    }

    public Integer getGrades()
    {
        return grades;
    }
    public void setTename(String tename)
    {
        this.tename = tename;
    }

    public String getTename()
    {
        return tename;
    }
    public void setElectiveTime(Date electiveTime)
    {
        this.electiveTime = electiveTime;
    }

    public Date getElectiveTime()
    {
        return electiveTime;
    }
    public void setStuName(String stuName)
    {
        this.stuName = stuName;
    }

    public String getStuName()
    {
        return stuName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("name", getName())
            .append("quality", getQuality())
            .append("grades", getGrades())
            .append("tename", getTename())
            .append("electiveTime", getElectiveTime())
            .append("stuName", getStuName())
            .toString();
    }
}
